.export end_of_logo_data
.export _setupLogoDecrunch, _fixChars

.code
.proc _setupLogoDecrunch
	lda #$AD
	sta $C800
	lda #<(end_of_logo_data + 1)
	sta $C801
	lda #>(end_of_logo_data + 1)
	sta $C802
	lda #$60
	sta $C803
	rts
.endproc

.proc _fixChars
	ldy #$00

:	clc
	lda $0400,y
	adc #$50
	sta $0400,y

	clc
	lda $0500,y
	adc #$50
	sta $0500,y

	clc
	lda $0600,y
	adc #$50
	sta $0600,y

	clc
	lda $0700,y
	adc #$50
	sta $0700,y

	dey
	bne :-
	rts
.endproc 


.segment        "LOGO"
	.incbin "..\res\logo_raw", 2
end_of_logo_data: